package com.zmn.oms.dubbo.interfaces.normal.order;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dio.normal.visit.OrderVisitQueryDIO;
import com.zmn.oms.common.dro.visit.OrderVisitDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 类描述：
 *
 * @author wangxiaokun
 * @since 2021/09/23 14:20
 */
@Api(
        value = "多次上门",
        tags = {"多次上门"}
)
public interface OrderVisitRemoteService {

    @ApiOperation(
            value = "获取单个上门信息",
            response = ResponseDTO.class,
            tags = {"多次上门"}
    )
    ResponseDTO<OrderVisitDRO> getOrderVisitByQuery(@NotNull(message = "dio不能为空")
                                                    @ApiParam(value = "dio", required = true)
                                                            OrderVisitQueryDIO orderVisitQueryDIO);

    @ApiOperation(
            value = "获取多个上门信息",
            response = ResponseDTO.class,
            tags = {"多次上门"}
    )
    ResponseDTO<List<OrderVisitDRO>> listOrderVisitByQuery(@NotNull(message = "dio不能为空")
                                                            @ApiParam(value = "dio", required = true)
                                                                    OrderVisitQueryDIO orderVisitQueryDIO);
}
